<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\cpmjagent\model\finance;

/**
 * Description of WithdrawModel
 *
 * @author SoChishun
 */
class WithdrawModel extends \app\cpmjagent\model\AppbaseModel {
    protected $table='t_finance_withdraw';
    protected $autoWriteTimestamp = 'timestamp';

    public function getStatusTextAttr() {
        $value=$this->status;
        switch($value){
            case 0:
                return '待审核';
            case 1:
                return '通过';
            case 2:
                return '驳回';
        }
        return $value;
    }
}
